package com.attendance.www.hr.service;

import com.attendance.www.hr.beans.RequestAuthorityBean;
import com.attendance.www.hr.beans.RequestAuthorityPageBean;
import com.attendance.www.hr.entitys.RequestAuthority;

public interface IRequestAuthorityService {

	/**
	 * 新增产假
	 * @param requestAuthorityBean
	 * @return
	 */
	public boolean saveRequestAuthority(RequestAuthorityBean requestAuthorityBean);
	
	/**
	 * 删除产假
	 * @param requestAuthorityId
	 * @return
	 */
	public boolean deleteRequestAuthority(String requestAuthorityId );
	
	/**
	 * 修改产假额度
	 * @param requestAuthorityBean
	 * @return
	 */
	public boolean updateRequestAuthority(RequestAuthorityBean requestAuthorityBean);
	
	/**
	 * 查询产假信息
	 * @param requestAuthorityBean
	 * @return
	 */
	public RequestAuthorityPageBean getRequestAuthorityList(RequestAuthorityBean requestAuthorityBean);
	
	/**
	 * 查询产假额度
	 * @param regionType
	 * @param maternity
	 * @return
	 */
	public int getHolidayQuota(String regionType, String maternity);
	
	/**
	 * 根据ID查询产假信息
	 * @param requestAuthorityId
	 * @return
	 */
	public RequestAuthority getRequestAuthorityById(String requestAuthorityId);
	
}
